/**
 * Created by wangkui on 2016/1/26.
 */
var express = require('express'),
    router = express.Router(),
    userinfo = require('./userinfo.controller');
avatar = require('./user.avatar'),
    auth = require('./../../auth/auth.service');

//读取用户列表
router.get('/',userinfo.index);
//创建用户
router.post('/', userinfo.createorupdate);
//用户信息
router.get('/:id',userinfo.getuserinfo);

//更新用户头像
//router.post('/:id/uploadavatar',avatar.uploaduseravatar);



module.exports = router;